package com.chuangke.message;

import org.springframework.beans.factory.annotation.Autowired;

import com.chuangke.message.model.Message;
import com.chuangke.message.service.MessageService;

public class Demo {

	@Autowired
	private MessageService messageService;

	public void sendSysMessage() {
		messageService.send(Message.buildSysMessage("213412341234", "请查收任务"));
		messageService.send(Message.buildSysMessage("3143143244", "213412341234", "请查收任务"));
	}

	public void sendSmsMessage() {
		messageService.send(Message.buildSmsMessage("12341341243", "18715677456", "请查收任务"));
	}
}
